package org.devf.fork.imsimulator;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class HelloApplication extends Application {

    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader loader = new FXMLLoader(getClass().getResource("login-view.fxml"));
        Parent loginRoot = loader.load();
        Scene scene = new Scene(loginRoot, 400, 300);
        scene.getStylesheets().add(getClass().getResource("login.css").toExternalForm());
        stage.setScene(scene);
        stage.setTitle("登录");
        stage.show();
    }

    @Override
    public void stop() throws Exception {
        super.stop();
        System.out.println("结束stop");
        System.exit(-1);
    }

    public static void main(String[] args) {
        launch();
    }
}